<!DOCTYPE html>
<html>
  <head>
    <title>楼盘新增</title>
    <meta charset="utf-8">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">


    <link rel="stylesheet" href="__STATIC__/mobile/css/weui.min.css">
    <link rel="stylesheet" href="__STATIC__/mobile/css/jquery-weui.css">
    <!-- <link rel="stylesheet" href="css/style.min.css"> -->
    <link rel="stylesheet" href="__STATIC__/mobile/css/demos.css">
    <link rel="stylesheet" href="__STATIC__/mobile/css/main.css">
    <link rel="stylesheet" href="__STATIC__/mobile/css/iconfont.css">
    <script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=DA6Bw0637vf4t96C4GRhyPBMyplqG6zA"></script>
    <script src="__STATIC__/mobile/js/jquery-2.1.4.js"></script>
    <!--图片显示-->
    <link href="__STATIC__/form/animate.css" rel="stylesheet" type="text/css" media="all">
    <link href="__STATIC__/form/add.css" rel="stylesheet" type="text/css" media="all">
    <!--腾讯地图显示-->
    <script charset="utf-8" src="http://map.qq.com/api/js?v=2.exp"></script>
    <script type="text/javascript" src="__STATIC__/js/layer/layer.js"></script>
    <style>
        .navbar {
            height: 50px;
            color: #fff;
            background: #ffd966;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 99;
            display: -webkit-box;
            display: -ms-flexbox;
            overflow: hidden;
        }
        .navbar .nav-wrap-left {
            height: 100%;
            width: 25%;
            line-height: 50px;
        }
        .navbar .nav-wrap-left .nav-btn {
            padding-right: 0;
        }
        .navbar .nav-btn {
            padding: 0 0 0 10%;
            width: 90%;
            height: 100%;
            display: block;
            color: #fff;
            font-size: 14px;
        }
        a:active, a:focus, a:hover, a:visited {
            color: #bbb;
        }
        a, a:hover, del, ins, s, u {
            text-decoration: none;
        }
        .barbtn, a, button, em, input, textarea {
            -webkit-tap-highlight-color: rgba(255,0,0,0);
        }
        a {
            color: #666;
            text-decoration: none;
            outline: 0;
        }
        .navbar .nav-title {
            width: 50%;
            height: 100%;
            overflow: hidden;
            line-height: 50px;
            text-align: center;
            -webkit-box-flex: 1;
            -ms-flex: 1;
        }
        .navbar .nav-wrap-right {
            height: 100%;
            width: 25%;
            line-height: 50px;
            text-align: right;
        }
        .filterbar .dropdown-toggle.active {
            color: #179b16;
        }
        .icon-xuanzechengshi {
            font-size: 8px!important;
        }
        #joblist .list-item .salary span, #loadMore .list-item .salary span, #recommend-job .list-item .salary span {
            color: #179b16;
            font-size: .42rem;
        }
        .pic {
            width: 55px!important;
        }
        .pic img{
            width: 55px!important;
            height: 55px;
        }
        .filterbar .dropdown-wrapper {
            position: absolute;
            width: 100%;
            z-index: inherit;
        }
        .filterbar .nav {
            position: relative;
            z-index: inherit;
        }
        .block {
            display: block;
        }
        .none {
            display: none;
        }
        .filterbar .nav {
            display: -webkit-box;
            display: -ms-flexbox;
            background: #fff;
            border-bottom: 1px solid #e5e5e5;
            text-align: center;
            height: .86rem;
            line-height: .86rem;
            -webkit-user-select: none;
            font-size: 13px;
            text-align: center;
        }
        .main {
            /*padding: 0!important;*/
            padding-top: 50px; 
            z-index: 9999999;
        }
        .filterbar .category-wrapper {
            overflow: scroll;
        }
        .category-wrapper {
            max-height: 480px!important;
        }
        .  .top-logo img{
      border-radius: 50%;
    }
    /*.weui-uploader__file {
        width: 40%;
        height: 79px;
    }*/
    .top-logo {
        width: 100%;
        height: 8em;
        margin-top: 1em;
        overflow: hidden;
    }
    .top-logo img {
        width: 6em;
        height: 6em;
        margin: 1em auto;
        display: block;
    }
    .weui-cell2:after {
        content: " ";
        position: absolute;
        left: 0;
        right: 0;
        height: 1px;
        color: #d9d9d9;
        bottom: 0;
        border-bottom: 1px solid #d9d9d9;
        -webkit-transform-origin: 0 100%;
        transform-origin: 0 100%;
        -webkit-transform: scaleY(.5);
        transform: scaleY(.5);
    }
    /*.weui-uploader__file {
          float: left;
          background: no-repeat 50%;
          background-size: cover;
          display: inline-block;
          margin: 0px 5%;
          background-size: 100% 100%;
      }*/
    .weui-cells {
        margin-top: 0.2em;
    }
    .weui-cell_access{
        padding: 0 15px
    }
    </style>
  </head>

  <body ontouchstart style="background: #fff" onload="init()">
    <!--   定义地图显示容器   -->
    <div class="l-map" style="height: 100%;display:none" >
        <div id="container" style="height: 100%;"></div>
    </div>
     
    <div class="navbar">
        <div class="nav-wrap-left">
            <a class="nav-btn" href="javascript:" onclick="self.location=document.referrer;">
                <i style="font-size: 22px" class="iconfont icon-goback"></i>
            </a>
        </div>
        <div class="nav-title">楼盘新增</div>
        <div class="nav-wrap-right">
            
        </div>
    </div>
    <!-- 正文 -->
    <div class="main">
    <form action='' method='post' enctype="multipart/form-data" onsubmit='return checkInfo()'> 
    <!-- 
        <div class="weui-cells weui-cells_form">
            <div class="weui-cell">
                <div class="weui-cell__hd"><label class="weui-label">楼盘名称</label></div>
                <div class="weui-cell__bd">
                    <input id="building_name" name="name" class="weui-input" type="text" placeholder="请输入楼盘名称">
                </div>
            </div>
            <div class="weui-cell">
                <div class="weui-cell__hd"><label class="weui-label">楼盘基础评分</label></div>
                <div class="weui-cell__bd">
                    <input id="building_score" name="score" class="weui-input" type="number" placeholder="请输入楼盘基础评分">
                </div>
            </div>
        
            <div class="weui-cell">
                <div class="weui-cell__hd"><label class="weui-label">楼盘总评分</label></div>
                <div class="weui-cell__bd">
                    <input id="building_allscore"  class="weui-input" type="text" disabled="disabled" placeholder="楼盘总评分">
                </div>
            </div>
        
        </div>-->

        <div class="weui-cells weui-cells_form">
            <div style="text-align: center;padding: 5px 0;background: #ffd966;color: #000;font-family: "黑体";">主体信息</div>
            <div class="weui-cell">
                <div class="weui-cell__hd"><label class="weui-label">楼盘名称</label></div>
                <div class="weui-cell__bd">
                    <input id="building_name" name="name" class="weui-input" type="text" placeholder="请输入楼盘名称">
                </div>
            </div>
            <div class="weui-cell weui-cell_select weui-cell_select-after">
                <div class="weui-cell__hd"><label class="weui-label">能否做活动</label></div>
                <div class="weui-cell__bd">
<!--                     <input id="building_isActivity" name="if-activity" class="weui-input" type="text" placeholder="请选择能否做活动"> -->
                    <select class="weui-select" name="if-activity" id = "building_isActivity">
                            <option></option>
                            <option value="1">是</option>
                            <option value="2">否</option>
                    </select>                        
                </div>
            </div>
            <div class="weui-cell">
                <div class="weui-cell__hd"><label class="weui-label">楼盘基础评分</label></div>
                <div class="weui-cell__bd">
                    <input id="building_score" name="score" class="weui-input" type="number" placeholder="请输入楼盘基础评分">
                </div>
            </div>
            <div class="weui-cell weui-cell_vcode">
                <div class="weui-cell__hd"><label class="weui-label">单场价格</label></div>
                <div class="weui-cell__bd">
                    <input id="building_price" name="price" class="weui-input" type="number" placeholder="请输入单场价格">
                </div>
                <div class="weui-cell__ft">
                    <div class="weui-vcode-btn">元</div>
                </div>
            </div>
            <div class="weui-cell">
                <div class="weui-cell__hd"><label class="weui-label">银行卡账号</label></div>
                <div class="weui-cell__bd">
                    <input id="bank_num" name="bank_num" class="weui-input" type="text" placeholder="请输入银行卡账号">
                </div>
            </div>
            <div class="weui-cell">
                <div class="weui-cell__hd"><label class="weui-label">支付宝账号</label></div>
                <div class="weui-cell__bd">
                    <input id="alipay" name="alipay" class="weui-input" type="text" placeholder="请输入支付宝账号">
                </div>
            </div>
            <div class="weui-cell">
                <div class="weui-cell__hd"><label class="weui-label">微信账号</label></div>
                <div class="weui-cell__bd">
                    <input id="wx_num" name="wx_num" class="weui-input" type="text" placeholder="请输入微信账号">
                </div>
            </div>
            <div class="weui-cell">
                <div class="weui-cell__hd"><label class="weui-label">收费凭证</label></div>
                <div class="weui-cell__bd">
                    <input id="building_evidence" name="shoufeipingzheng" class="weui-input" type="text" placeholder="请输入收费凭证">
                </div>
            </div>
            <div class="weui-cell">
                <div class="weui-cell__hd"><label class="weui-label">缴费备注</label></div>
                <div class="weui-cell__bd">
                    <input id="building_tip" name="beizhu" class="weui-input" type="text" placeholder="请输入缴费备注">
                </div>
            </div>
            <div class="weui-cell">
                <div class="weui-cell__hd"><label class="weui-label">物业名称</label></div>
                <div class="weui-cell__bd">
                    <input id="building_property" name="wuye" class="weui-input" type="text" placeholder="请输入物业名称">
                </div>
            </div>
            <div class="weui-cell">
                <div class="weui-cell__hd"><label class="weui-label">联系人</label></div>
                <div class="weui-cell__bd">
                    <input id="building_name" name="wuyename" class="weui-input" type="text" placeholder="请输入物业姓名">
                </div>
            </div>
            <div class="weui-cell">
                <div class="weui-cell__hd"><label class="weui-label">职务</label></div>
                <div class="weui-cell__bd">
                    <input id="building_post" name="job" class="weui-input" type="text" placeholder="请输入物业职务">
                </div>
            </div>
            <div class="weui-cell">
                <div class="weui-cell__hd"><label class="weui-label">手机号</label></div>
                <div class="weui-cell__bd">
                    <input id="building_phone" name="mobile" class="weui-input" type="number" placeholder="请输入收手机号">
                </div>
            </div>
            <div class="weui-cell">
                <div class="weui-cell__hd"><label class="weui-label">固定电话</label></div>
                <div class="weui-cell__bd">
                    <input id="building_telephone" name="tel" class="weui-input" type="number" placeholder="请输入收固定电话">
                </div>
            </div>
            
    
            
        </div>

        <div class="weui-cells ">
            <div style="text-align: center;padding: 5px 0;background: #ffd966;color: #000;font-family: "黑体";">楼盘信息</div>

            <!--
            <div class="weui-uploader__bd" style="padding: 10px;">
                
                <div class="weui-uploader__input-box">
                    <input id="uploaderInput3" name='logo1' class="weui-uploader__input class="file_upload"" type="file" accept="image/*" multiple="">
                </div>
            </div>
            -->
            <div class="weui-cell weui-cell_access">
                <div class="weui-cell__hd"><label class="weui-label">物业费</label></div>
                <div class="weui-cell__bd">
<!--                     <input id="building_rent" name="wuyefei" class="weui-input" type="text" placeholder="请选择物业费">
 -->                    <select class="weui-select"  id="building_rent" name="wuyefei">
                            <option></option>
                            <option value="1">5以下</option>
                            <option value="2">5.1-9.9</option>
                            <option value="3">10-14.9</option>
                            <option value="4">15-19.9</option>
                            <option value="5">20-29.9</option>
                            <option value="6">30-39.9</option>
                            <option value="7">40-49.9</option>
                            <option value="8">50及以上</option>

                    </select>   
                </div>
                <div class="weui-cell__ft">元/平方/月</div>
            </div>
            <div class="weui-cell weui-cell_select weui-cell_select-after">
                <div class="weui-cell__hd"><label class="weui-label">入住率</label></div>
                <div class="weui-cell__bd">
<!--                     <input id="building_rate" name="ruzhulv" class="weui-input" type="text" placeholder="请选择入住率">
 -->                    <select class="weui-select" name="ruzhulv" id ="building_rate">
                            <option></option>
                            <option value="1">10%</option>
                            <option value="2">20%</option>
                            <option value="3">30%</option>
                            <option value="4">40%</option>
                            <option value="5">50%</option>
                            <option value="6">60%</option>
                            <option value="7">70%</option>
                            <option value="8">80%</option>
                            <option value="9">90%</option>
                            <option value="10">100%</option>
                    </select>   
                </div>
            </div>
            <div class="weui-cell">
                <div class="weui-cell__hd"><label class="weui-label">选择城市</label></div>
                <div class="weui-cell__bd">
                    <input id="building_city" name="address" class="weui-input" type="text" placeholder="请选择城市">
                </div>
            </div>
            <div class="weui-cell">
                <div class="weui-cell__hd"><label class="weui-label">地址</label></div>
                <div class="weui-cell__bd">
                    <input id="building_badress" name="wyadd" class="weui-input" type="text" placeholder="请输入地址">
                </div>
            </div>
            <div class="weui-cell weui-cell_access">
                <div class="weui-cell__hd"><label class="weui-label">办公规模</label></div>
                <div class="weui-cell__bd">
                    <!-- <input id="building_scale" name="workguimo" class="weui-input" type="text" placeholder="请选择办公规模"> -->
                    <select class="weui-select" id="building_scale" name="workguimo">
                            <option></option>
                            <option value="1">2以下</option>
                            <option value="2">2-4</option>
                            <option value="3">5-9</option>
                            <option value="4">10-14</option>
                            <option value="5">15-19</option>
                            <option value="6">20及以上</option>
                    </select>   
                </div>
                <div class="weui-cell__ft">万平米</div>
            </div>
            <div class="weui-cell weui-cell_access">
                <div class="weui-cell__hd"><label class="weui-label">办公人数</label></div>
                <div class="weui-cell__bd">
                    <!-- <input id="building_pnum" name="workernum" class="weui-input" type="text" placeholder="请选择办公人数"> -->
                    <select class="weui-select" id="building_pnum" name="workernum">
                            <option></option>
                            <option value="1">1以下</option>
                            <option value="2">1-1.9</option>
                            <option value="3">2-2.9</option>
                            <option value="4">3-3.9</option>
                            <option value="5">4-4.9</option>
                            <option value="6">5及以上</option>
                    </select>   
                </div>
                <div class="weui-cell__ft">千人</div>
            </div>
            <div class="weui-cell weui-cell_vcode">
                <div class="weui-cell__hd"><label class="weui-label">楼盘层数</label></div>
                <div class="weui-cell__bd">
                    <input id="building_height" name="cenggao" class="weui-input" type="number" placeholder="请输入层高">
                </div>
                <div class="weui-cell__ft">
                    <div class="weui-vcode-btn">层</div>
                </div>
            </div>
            <div class="weui-cell weui-cell_vcode">
                <div class="weui-cell__hd"><label class="weui-label">启用年代</label></div>
                <div class="weui-cell__bd">
                    <input id="building_year" name="niandai" class="weui-input" type="number" minlength="4" maxlength="4" placeholder="请输入启用年代">
                </div>
                <div class="weui-cell__ft">
                    <div class="weui-vcode-btn">年</div>
                </div>
            </div>
            
            

            
            
            <!-- <div class="weui-cell">
                <div class="weui-cell__hd"><label class="weui-label">地面停车位</label></div>
                <div class="weui-cell__bd">
                    <input id="building_upSpace" name="park1" class="weui-input" type="number" placeholder="请输入地面停车位">
                </div>
            </div>
            <div class="weui-cell">
                <div class="weui-cell__hd"><label class="weui-label">地下停车位</label></div>
                <div class="weui-cell__bd">
                    <input id="building_bottomSpace" name="park2" class="weui-input" type="number" placeholder="请输入收地下停车位">
                </div>
            </div> -->
            <div class="weui-cell">
                <div class="weui-cell__hd"><label class="weui-label">停车场</label></div>
                <div class="weui-cell__bd">
                    <input id="park3" name="park3" class="weui-input" type="text" >
                </div>
            </div>
            <div class="weui-cell">
                <div class="weui-cell__hd"><label class="weui-label">外景照</label></div>
                <div class="ipt image_container" style="width:75px; height:75px;">
                    <img src="__STATIC__/vote_042.png" alt="" id="preview">
                    <input type="file" name='logo1' id="exampleInputFile1" class="file_upload">
                </div>
            </div>
            <div class="weui-cell">
                <div class="weui-cell__hd"><label class="weui-label">入驻企业</label></div>
                <div class="weui-cell__bd">
                    <div class="ipt image_container" style="width:75px; height:75px;">
                        <img src="__STATIC__/vote_042.png" alt="" id="preview">
                        <input type="file" name='logo2' id="exampleInputFile1" class="file_upload">
                    </div>                   
                </div>
                <div class="weui-cell__bd">
                    <div class="ipt image_container" style="width:75px; height:75px;">
                        <img src="__STATIC__/vote_042.png" alt="" id="preview">
                        <input type="file" name='logo22' id="exampleInputFile1" class="file_upload">
                    </div>                   
                </div>
            </div>
            <!--
            <div class="weui-uploader__bd" style="padding: 10px;">
             
                <div class="weui-uploader__input-box">
                    <input id="uploaderInput1" name='logo2' class="weui-uploader__input class="file_upload"" type="file" accept="image/*" multiple="">
                </div>
            </div>
            -->
            

        </div>
        <div class="weui-cells ">
            <div style="text-align: center;padding: 5px 0;background: #ffd966;color: #000;font-family: "黑体";">场地信息</div>
            
            <div class="weui-cell weui-cell_access">
                <div class="weui-cell__hd"><label class="weui-label">大厅面积</label></div>
                <div class="weui-cell__bd">
                    <!-- <input id="building_areaNum" name="datingarea" class="weui-input" type="text" placeholder="请输入大厅面积"> -->
                    <select class="weui-select" id="building_areaNum" name="datingarea">
                            <option></option>
                            <option value="1">50以下</option>
                            <option value="2">50-99</option>
                            <option value="3">100-199</option>
                            <option value="4">200及以上</option>
                    </select>   
                </div>
                <div class="weui-cell__ft">平方米</div>
            </div>
            <div class="weui-cell weui-cell_access">
                <div class="weui-cell__hd"><label class="weui-label">场地面积</label></div>
                <div class="weui-cell__bd">
                    <!-- <input id="building_adressNum" name="changdiarea" class="weui-input" type="tel" placeholder="请输入场地面积"> -->
                    <select class="weui-select" id="building_adressNum" name="changdiarea">
                            <option></option>
                            <option value="1">5以下</option>
                            <option value="2">5-9.9</option>
                            <option value="3">10-19.9</option>
                            <option value="4">20及以上</option>
                    </select>   
                </div>
                <div class="weui-cell__ft">平方米</div>
            </div>
            <div class="weui-cell weui-cell_access">
                <div class="weui-cell__hd"><label class="weui-label">大厅高度</label></div>
                <div class="weui-cell__bd">
<!--                     <input id="building_hallheight" name="datingheight" class="weui-input" type="tel" placeholder="请输入大厅高度"> -->
                    <select class="weui-select" id="building_hallheight" name="datingheight">
                            <option></option>
                            <option value="1">5以下</option>
                            <option value="2">5-10</option>
                    </select>   
                </div>
                <div class="weui-cell__ft">米</div>
            </div>
            <div class="weui-cell weui-cell_select weui-cell_select-after">
                <div class="weui-cell__hd"><label class="weui-label">有无空调</label></div>
                <div class="weui-cell__bd">
                    <!-- <input id="building_iskongtiao" name="kongtiao" class="weui-input" type="text" placeholder="请选择有无空调"> -->
                    <select class="weui-select" id="building_iskongtiao" name="kongtiao">
                            <option></option>
                            <option value="1">有</option>
                            <option value="2">无</option>
                    </select>  
                </div>
            </div>
            <div class="weui-cell weui-cell_select weui-cell_select-after">
                <div class="weui-cell__hd"><label class="weui-label">是否主入口</label></div>
                <div class="weui-cell__bd">
                    <!-- <input id="building_entrance" name="mainrukou" class="weui-input" type="text" placeholder="请选择是否主入口"> -->
                    <select class="weui-select" id="building_entrance" name="mainrukou">
                            <option></option>
                            <option value="1">是</option>
                            <option value="2">否</option>
                    </select>  
                </div>
            </div>

            <div class="weui-cell weui-cell_select weui-cell_select-after">
                <div class="weui-cell__hd"><label class="weui-label">电源</label></div>
                <div class="weui-cell__bd">
                    <select class="weui-select" id="building_powerPositon"  name="dianyuan">
                            <option></option>
                            <option value="1">有</option>
                            <option value="2">无</option>
                    </select>  
                    <!-- <input id="building_powerPositon"  name="dianyuan" class="weui-input" type="text" placeholder="请选择有无电源"> -->
                </div>
            </div>
          <!--   <div class="weui-cell weui-cell_select weui-cell_select-after">
                <div class="weui-cell__hd"><label class="weui-label">场地数目</label></div>
                <div class="weui-cell__bd">
                 
                    <select class="weui-select" id="building_pnum1" name="changdi-num">
                            <option></option>
                            <option value="1">1以下</option>
                            <option value="2">1-1.9</option>
                            <option value="3">2-2.9</option>
                            <option value="4">3-3.9</option>
                            <option value="5">4-4.9</option>
                            <option value="6">5及以上</option>
                    </select>   
                </div>
            </div> -->
            <div class="weui-cell weui-cell_select weui-cell_select-after">
                <div class="weui-cell__hd"><label class="weui-label">入口数量</label></div>
                <div class="weui-cell__bd">
                    <select class="weui-select" name="changdi-num" id = "building_num">
                            <option></option>
                            <option value="1">1</option>
                            <option value="2">2</option>
                            <option value="3">3</option>
                            <option value="4">4</option>
                            <option value="5">5</option>
                           
                    </select>   
<!--                     <input id="building_num" name="changdi-num" class="weui-input" type="text" placeholder="请输入场地数量">
 -->                </div>
            </div>
            <div class="weui-cell">
                <div class="weui-cell__hd"><label class="weui-label">场地位置</label></div>
                <div class="weui-cell__bd">
                    <div class="ipt image_container" style="width:75px; height:75px;">
                        <img src="__STATIC__/vote_042.png" alt="" id="preview">
                        <input type="file" name='logo3' id="exampleInputFile1" class="file_upload">
                    </div>
                    <div class="ipt image_container" style="width:75px; height:75px;">
                        <img src="__STATIC__/vote_042.png" alt="" id="preview">
                        <input type="file" name='logo4' id="exampleInputFile1" class="file_upload">
                    </div>                   
                </div>
            </div>
            <!--
            <div class="weui-uploader__bd" style="padding: 10px;">
                <div class="weui-uploader__input-box">
                    <input id="uploaderInput2" name='logo3' class="weui-uploader__input class="file_upload"" type="file" accept="image/*" multiple="">
                </div>
            </div>
            -->
            
            <div class="weui-cell">
                <div class="weui-cell__hd"><label class="weui-label">场地备注</label></div>
                <div class="weui-cell__bd">
                    <textarea class="weui-textarea" name="changdi-beizhu" id='changdibeizhu' placeholder="请输入文本" rows="3"></textarea>
                </div>
            </div>
            <div class="weui-cell">
                <div class="weui-cell__hd"><label class="weui-label">活动备注</label></div>
                <div class="weui-cell__bd">
                    <textarea class="weui-textarea" name="activity-beizhu" id='activitybeizhu' placeholder="请输入文本" rows="3"></textarea>
                </div>
            </div>
            
        </div>
        <div class="weui-cells weui-cells_form">
            <div style="text-align: center;padding: 5px 0;background: #ffd966;color: #000;font-family: "黑体";">活动场地信息</div>
            <div class="weui-cell">
                <div class="weui-cell__hd"><label for="name" class="weui-label">人群类型</label></div>
                <div class="weui-cell__bd">
                  <input class="weui-input" name="peopletype" id="building_peoplestyle" type="text" value="">
                </div>
            </div>
            <div class="weui-cell">
                <div class="weui-cell__hd"><label for="name" class="weui-label">楼宇媒体</label></div>
                <div class="weui-cell__bd">
                  <input class="weui-input" name="media" id="building_mediastyle" type="text" value="">
                </div>
            </div>
        </div>
        <div class="weui-cells weui-cells_form">
            <div style="text-align: center;padding: 5px 0;background: #ffd966;color: #000;font-family: "黑体";">地图选点</div>
            <div class="weui-cell">
                <div class="weui-cell__hd">
                    <label id="get_map" class="weui-label">获取地图</label>
                </div>
            </div>
            
            <input type="hidden" name="latitude" id="latitude">
            <input type="hidden" name="longitude" id="longitude">
       </div>
        <div class="weui-btn-area">        
            <button type="submit" class="weui-btn weui-btn_primary">提交</button> 
        </div>

    </form>  
    </div>

   
    <div id="allmap1"></div>
    <script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
    <script>

        $(function() {
        var obj4 =[
            {
              title: "露天",
              value: 0
            },
            {
              title: "地下",
              value: 1
            }
          ]
          $("#park3").select({
              title: "停车场",
              multi: true,
              min: 1,
              max: 3,
              items: obj4,
              beforeClose: function(values, titles) {
               
              },
              onChange: function(d) {
                console.log(this, d);
              },
              onClose: function (d) {
                console.log('close');
              }
          });
         var obj3 =[
             {
               title: "无",
               value: 0
             },
             {
               title: "发票",
               value: 1
             },
             {
               title: "收据",
               value: 2
             }
           ]
         $("#building_evidence").select({
             title: "收费凭证",
             multi: true,
             min: 1,
             max: 3,
             items: obj3,
             beforeClose: function(values, titles) {
              
             },
             onChange: function(d) {
               console.log(this, d);
             },
             onClose: function (d) {
               console.log('close');
             }
         });
        //var obj =["A型", "B型", "C型"];
        var obj =[
            {
              title: "A1",
              value: 1
            },
            {
              title: "A2",
              value: 2
            },
            {
              title: "B1",
              value: 3
            },
            {
              title: "B2",
              value: 4
            }
          ]
        $("#building_peoplestyle").select({
            title: "人群类型",
            multi: true,
            min: 1,
            max: 3,
            items: obj,
            beforeClose: function(values, titles) {
             
            },
            onChange: function(d) {
              console.log(this, d);
            },
            onClose: function (d) {
              console.log('close')
            }
        });
        //var obj2 =["分众", "框架", "华语", "静视", "门贴", "其他"];
        var obj2 =[
            {
              title: "分众",
              value: 1
            },
            {
              title: "框架",
              value: 2
            },
            {
              title: "华语",
              value: 3
            },
            {
              title: "精视",
              value: 4
            },
            {
              title: "门贴",
              value: 5
            },
            {
              title: "城市纵横",
              value: 6
            },
            {
              title: "其他",
              value: 7
            },
          ]
        $("#building_mediastyle").select({
            title: "楼宇媒体",
            multi: true,
            min: 1,
            // max: 3,
            items: obj2,
            beforeClose: function(values, titles) {
              
            },
            onChange: function(d) {
              console.log(this, d);
            },
            onClose: function (d) {
              console.log('close');
            }
        });
        $("#building_city").cityPicker({
          title: "选择城市",
          onChange: function (picker, values, displayValues) {
            console.log(values, displayValues);
          }
        });
    });
    </script>
    <script src="__STATIC__/mobile/js/jquery-weui.js"></script>
    <script src="__STATIC__/mobile/js/city-picker.js"></script>
    <script src="__STATIC__/mobile/js/globalvariable.js"></script>
    <script src="__STATIC__/mobile/js/fastclick.js"></script>
    <script src="__STATIC__/mobile/js/sose.js"></script>
    <script>
      $(function() {
        FastClick.attach(document.body);

      });

      //地图
      $('#get_map').click(function(){
            $('.l-map').show();
            //在这里面输入任何合法的js语句
            layer.open({
              type: 1 //Page层类型
              ,area: ['100%', '100%']
              ,title: ''
              ,shade: 0.6 //遮罩透明度
              ,maxmin: false //允许全屏最小化
              ,anim: 1 //0-6的动画形式，-1不开启
              ,content: $('#container'),
              end : function(){
                $('.l-map').hide();
              }
            }); 
            
      })
      //初始化地图函数  自定义函数名init
    function init() {
        //定义map变量 调用 qq.maps.Map() 构造函数   获取地图显示容器
        var center = new qq.maps.LatLng(39.916527,116.397128);
        var map = new qq.maps.Map(document.getElementById('container'),{
              center: center,
              zoom: 13
        });
        var marker = new qq.maps.Marker({
            position: new qq.maps.LatLng(39.916527,116.397128),
            map: map
        });
        //绑定单击事件添加参数
        qq.maps.event.addListener(map, 'click', function(event) {
            alert('您点击的位置为: [' + event.latLng.getLat() + ', ' +
            event.latLng.getLng() + ']');
            $('#latitude').val(event.latLng.getLat());
            $('#longitude').val(event.latLng.getLng());
            marker.setPosition(new qq.maps.LatLng(event.latLng.getLat(),event.latLng.getLng()))
            layer.closeAll();
        });
        //获取当前位置
        citylocation = new qq.maps.CityService({
           complete : function(result){
               map.setCenter(result.detail.latLng);
                //标记
                marker.setPosition(result.detail.latLng);
           }
        });
        //调用searchLocalCity();方法    根据用户IP查询城市信息。
        citylocation.searchLocalCity();
    }
    </script>
    <script>
        $('.file_upload').on('change',function(){
            var mgObjPreview=$(this).siblings('img')[0];
            var docObj=$(this)[0];
            mgObjPreview.src = window.URL.createObjectURL(docObj.files[0]);
        });
        var loading = false;
        var areaName = '';
        var cityName = '';
        var pageNo = 1;
        var pageSize = 10;
        var flag ='asc';
        var jobType = 0;
        var workType = 0;
        var tid;
        var jobTypeName;
        var city = window.localStorage.city;
        var latitude;
        var longitude;
        var first = true;
        
       

        function checkLogin() {
            // alert(window.localStorage.mid);
            if (isNull(window.localStorage.mid)) {
                $('.loginType').attr("data-type",2);
                $('.loginType').removeClass("icon-tuichudenglu").addClass("icon-iconfontwodea-copy-copy");
            } else {
                var obj = {
                    'mId':window.localStorage.mid,
                };
                doPost("account/info.web", obj, function(data) {
                    // JSON.stringify(data)
                    // alert(JSON.stringify(data));
                    if (data.success) {
                        // alert(1);
                        $('.loginType').attr("data-type",1);
                        $('.loginType').addClass("icon-tuichudenglu").removeClass("icon-iconfontwodea-copy-copy");
                    } else {
                        // alert(2);
                        $('.loginType').attr("data-type",2);
                        $('.loginType').removeClass("icon-tuichudenglu").addClass("icon-iconfontwodea-copy-copy");
                        $.toast(data.errMsg,"text");
                    }
                }, function(data) {
                      $.toast(data.errMsg,"text");
                });
            }
            
        }
        
      
        function checkInfo(){
            
            var building_name = $('#building_name').val();
            if(building_name == ''){
                alert('请输入楼盘名称');return false;
            }
            var building_score = $('#building_score').val();
            // if(building_score == ''){
            //     alert('请输入楼盘基础评分');return false;
            // }
            var building_isActivity = $('#building_isActivity').val();
            if(building_isActivity == ''){
                alert('请选择能否做活动');return false;
            }
            var building_city = $('#building_city').val();
            if(building_city == ''){
                alert('请选择城市');return false;
            }
            var building_num = $('#building_num').val();
            if(building_num == ''){
                alert('请选择入口数量');return false;
            }
            // var building_price = $('#building_price').val();
            // if(building_price == ''){
            //     alert('请输入单场价格');return false;
            // }
            // var building_tip = $('#building_tip').val();
            // if(building_tip == ''){
            //     alert('请输入缴费备注');return false;
            // }
            var building_evidence = $('#building_evidence').val(); 
            // if(building_evidence == ''){
            //     alert('请输入收费凭证');return false;
            // }

            // var building_property = $('#building_property').val();
            // if(building_property == ''){
            //     alert('请输入物业名称');return false;
            // }
            // var building_name = $('#building_name').val();
            // if(building_name == ''){
            //     alert('请输入物业姓名');return false;
            // }
            // var building_post = $('#building_post').val();
            // if(building_post == ''){
            //     alert('请输入物业职务');return false;
            // }
            var building_phone = $('#building_phone').val();
            if(building_phone !=''){
                if(!(/^1[3|4|5|7|8]\d{9}$/.test(building_phone))){ 
                        alert("手机号码格式有误，请重填");  
                        return false; 
                    }
            }
            
            // var building_telephone = $('#building_telephone').val();
            // if(building_telephone == ''){
            //     alert('请输入收固定电话');return false;
            // }
            var building_badress = $('#building_badress').val();
            if(building_badress == ''){
                alert('请输入地址');return false;
            }
            var building_height = $('#building_height').val();
            if(building_height == ''){
                alert('请输入楼盘层数');return false;
            }
            var building_year = $('#building_year').val();
            if(building_year == ''){
                alert('请输入启用年代');return false;
            }
            
            var building_rent = $('#building_rent').val();
            if(building_rent == ''){
                alert('请选择物业费');return false;
            }
            var building_rate = $('#building_rate').val();
            if(building_rate == ''){
                alert('请选择入住率');return false;
            }
            var building_scale = $('#building_scale').val();
            // if(building_scale == ''){
            //     alert('请选择办公规模');return false;
            // }
            var building_pnum = $('#building_pnum').val();
            // if(building_pnum == ''){
            //     alert('请选择办公人数');return false;
            // }
            // var building_upSpace = $('#building_upSpace').val();
            // if(building_upSpace == ''){
            //     alert('请输入地面停车位');return false;
            // }
            // var building_bottomSpace = $('#building_bottomSpace').val();
            // if(building_bottomSpace == ''){
            //     alert('请输入收地下停车位');return false;
            // }
            var park3 = $('#park3').val(); 
            if(park3 == ''){
                alert('请选择停车场');return false;
            }
            var building_areaNum = $('#building_areaNum').val();
            if(building_areaNum == ''){
                alert('请输入大厅面积');return false;
            }
            var building_adressNum = $('#building_adressNum').val();
            if(building_adressNum == ''){
                alert('请输入场地面积');return false;
            }
            var building_hallheight = $('#building_hallheight').val();
            if(building_hallheight == ''){
                alert('请输入大厅高度');return false;
            }
            var building_iskongtiao = $('#building_iskongtiao').val();
            if(building_iskongtiao == ''){
                alert('请选择有无空调');return false;
            }
            var building_entrance = $('#building_entrance').val();
            if(building_entrance == ''){
                alert('请选择是否主入口');return false;
            }
            var building_powerPositon = $('#building_powerPositon').val();
            if(building_powerPositon == ''){
                alert('请选择有无电源');return false;
            }
            var building_pnum1 = $('#building_pnum1').val();
            // if(building_pnum == ''){
            //     alert('请输入场地位置');return false;
            // }
            // var changdibeizhu = $('#changdibeizhu').val();
            // if(changdibeizhu == ''){
            //     alert('请输入场地备注');return false;
            // }
            // var activitybeizhu = $('#activitybeizhu').val();
            // if(activitybeizhu == ''){
            //     alert('请输入活动备注');return false;
            // }
            // var building_peoplestyle = $('#building_peoplestyle').val();
            // if(building_peoplestyle == ''){
            //     alert('请选择人群类型');return false;
            // }
            var building_mediastyle = $('#building_mediastyle').val();
            if(building_mediastyle == ''){
                alert('请选择楼宇媒体');return false;
            }
         
        }

    </script>
  </body>
</html>
